using Core;

namespace g_gongjianta
{
    public class DungeonSystem : Core.Component, IAwake
    {
        private Dungeon dungeon;

        public void Awake() { }

        public override void Dispose()
        {
            if (IsDisposed) return;

            base.Dispose();
        }

        public void Enter(int id)
        {
            log.err($"DungeonSystem enter {id}");
            dungeon = G.Factory.Create<Dungeon, int>(id);
        }
    }
}